package com.fish.yssb.ui.page.activity.other;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.fish.yssb.R;
import com.fish.yssb.ui.page.activity.base.BaseActivity;
import com.fish.yssb.ui.page.activity.realTime.RealTimeListYCActivity;
import com.fish.yssb.ui.page.util.TopToastUtil;
import com.jaeger.library.StatusBarUtil;


/**
 * A login screen that offers login via email/password.
 */
public class SafeActivity extends BaseActivity implements OnClickListener {
    private static final String TAG = SafeActivity.class.getSimpleName();

    private TextView btn_1,btn_2;
    private LinearLayout back;

    public static void start(Context context) {
        Intent intent = new Intent(context, SafeActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        StatusBarUtil.setTransparent(this);
        StatusBarUtil.setDarkMode(this);
        setContentView(R.layout.activity_safe);
        initview();

    }




    //初始化视图
    @SuppressLint("WrongViewCast")
    private void initview() {
        //登录层、下拉层、其它登录方式层
        btn_1 = findViewById(R.id.btn_1);
        btn_1.setOnClickListener(this);
        btn_2 = findViewById(R.id.btn_2);
        btn_2.setOnClickListener(this);
        back = findViewById(R.id.tv_back);
        back.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {


        switch (view.getId()) {
            case R.id.btn_1:
            case R.id.btn_2:
                TopToastUtil.getInstance(SafeActivity.this, R.layout.showdialog).showShortToast("开发中，尽请期待");

                break;
            case R.id.tv_back:
                finish();
                break;

            default:
                break;
        }


    }


}

